{% extends 'base.html' %}

{% block title %}Nieuwe Ronde{% endblock title %}

{% block user_menu %}

	{% if is_groep %}
		<li><a href="{{ BASE_PATH }}news/home/{{ game_id }}">Nieuws</a></li>
		<li><a href="{{ BASE_PATH }}round/home/{{ game_id }}">Resultaten</a></li>
		<li><a href="{{ BASE_PATH }}round/home/{{ game_id }}">Overzicht</a></li>
		<li><a href="{{ BASE_PATH }}round/edit/{{ game_id }}">Beslissingen</a></li>
	{% endif %}

<li><a href="{{ BASE_PATH }}logout">Uitloggen?</a></li>
{% endblock user_menu %}

{% block body%}
	<div class="post">
		<div class="post-bgtop">
			<div class="post-bgbtm">
				<h1 class="title"> Nieuwe ronde </h1>
				<div class="entry">
					<table>
						<tr>
							<td>Balance:</td>
							<td>{{ balance }}</td>
						</tr>
						<tr>
							<td>Debt:</td>
							<td>{{ debt }}</td>
						</tr>
						{% if dec_mills %}
							{% for m in dec_mills %}
							<tr>
								<td>Windmill:</td>
								<td>
									<table>
										<tr>
											<td>Name:</td>
											<td>{{ m.typeOfMill }}</td>
										</tr>
										<tr>
											<td>Number of Mills:</td>
											<td>{{ m.noOfMills }}</td>
										</tr>
										<tr>
											<td>Number of Mills in 1 Month:</td>
											<td>{{ m.noOfMills1Month }}</td>
										</tr>
										<tr>
											<td>Number of Mills in 2 Months:</td>
											<td>{{ m.noOfMills2Months }}</td>
										</tr>
										<tr>
											<td>Number of Mills in 3 Months:</td>
											<td>{{ m.noOfMills3Months }}</td>
										</tr>	
										<tr>
											<td>Number of broken Mills:</td>
											<td>{{ m.noOfBrokenMills }}</td>
										</tr>	
										<tr>
											<td>Number of Mills with Maintenance:</td>
											<td>{{ m.noOfMaintenance }}</td>
										</tr>										
									</table>
								</td>
							</tr>
							{% endfor %}
						{% endif %}
					</table>
				</div>
			</div>
		</div>
	</div>

{% endblock body %}
